<?php
namespace app\entity;

use yii\db\ActiveRecord;

class UserEntity extends ActiveRecord
{
   /* private $id;
    private $user_name;
    private $password;
    private $user_email;
    private $connect_name;
    private $connect_phone;
    private $create_time;
    private $update_time;
    private $del_flag;
    private $shop_id;
    private $is_main;*/

    /**
     * @return mixed
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * @param mixed $id
     */
    public function setId($id)
    {
        $this->id = $id;
    }

    /**
     * @return mixed
     */
    public function getUserName()
    {
        return $this->user_name;
    }

    /**
     * @param mixed $user_name
     */
    public function setUserName($user_name)
    {
        $this->user_name = $user_name;
    }

    /**
     * @return mixed
     */
    public function getPassword()
    {
        return $this->password;
    }

    /**
     * @param mixed $password
     */
    public function setPassword($password)
    {
        $this->password = $password;
    }

    /**
     * @return mixed
     */
    public function getUserEmail()
    {
        return $this->user_email;
    }

    /**
     * @param mixed $user_email
     */
    public function setUserEmail($user_email)
    {
        $this->user_email = $user_email;
    }

    /**
     * @return mixed
     */
    public function getConnectName()
    {
        return $this->connect_name;
    }

    /**
     * @param mixed $connect_name
     */
    public function setConnectName($connect_name)
    {
        $this->connect_name = $connect_name;
    }

    /**
     * @return mixed
     */
    public function getConnectPhone()
    {
        return $this->connect_phone;
    }

    /**
     * @param mixed $connect_phone
     */
    public function setConnectPhone($connect_phone)
    {
        $this->connect_phone = $connect_phone;
    }

    /**
     * @return mixed
     */
    public function getCreateTime()
    {
        return $this->create_time;
    }

    /**
     * @param mixed $create_time
     */
    public function setCreateTime($create_time)
    {
        $this->create_time = $create_time;
    }

    /**
     * @return mixed
     */
    public function getUpdateTime()
    {
        return $this->update_time;
    }

    /**
     * @param mixed $update_time
     */
    public function setUpdateTime($update_time)
    {
        $this->update_time = $update_time;
    }

    /**
     * @return mixed
     */
    public function getDelFlag()
    {
        return $this->del_flag;
    }

    /**
     * @param mixed $del_flag
     */
    public function setDelFlag($del_flag)
    {
        $this->del_flag = $del_flag;
    }

    /**
     * @return mixed
     */
    public function getShopId()
    {
        return $this->shop_id;
    }

    /**
     * @param mixed $shop_id
     */
    public function setShopId($shop_id)
    {
        $this->shop_id = $shop_id;
    }

    /**
     * @return mixed
     */
    public function getIsMain()
    {
        return $this->is_main;
    }

    /**
     * @param mixed $is_main
     */
    public function setIsMain($is_main)
    {
        $this->is_main = $is_main;
    }







    public function getShop()
    {
        return $this->hasOne(ShopEntity::class, ['id' => 'shop_id']);
    }




    public static function tableName()
    {
       return "act_partner";
    }



}